22.03.21 - Exercises on interaction
IO a
Actions that return a value of type a
Primitives
getChar :: IO Char
putChar :: Char -> IO()
return :: a -> IO a -- returns a 'void' result value
getLine :: IO String
putStr :: String -> IO()
putStrLn :: String -> IO()